package com.wxp.demo04.start;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;

import com.wxp.demo04.R;

/**
 * 1.1.1 Activity的启动
 */
public class ActStartActivity extends AppCompatActivity implements View.OnClickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        EdgeToEdge.enable(this);
        setContentView(R.layout.activity_act_start);
        this.setTitle("1.1.1 Activity的启动");
        //对按钮绑定点击事件
        findViewById(R.id.btn_act_next).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        //跳转新界面
        startActivity(new Intent(this, ActFinishActivity.class));
    }
}